/* reset begin */
h1 {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: 100%;
    font: inherit;
    vertical-align: baseline;
}

a {
    text-decoration: none;
}

input,
button {
    border: none;
    outline: none;
    outline-offset: 0;
}

button {
    background: initial;
}

/* reset end */

/*  common begin */

.container {
    width: 950px;
    margin: 0 auto;
}

.left {
    float: left;
}

.right {
    float: right;
}

.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

button {
    cursor: pointer;
    padding: 0
}

/*  common end */

/*  header begin */
.header {
    height: 90px;
    padding-top: 30px;
    box-sizing: border-box;
}

/* .header .container
{
    margin-top: 30px; 这里会造成外边距合并
} */
/* .header .logo, 
.header .search,
.header .menu
{ 
    height: 30px;
    border: 1px solid red;
} */
.header .logo a {
    width: 154px;
    height: 0;
    display: block;
    /* 以上3行是为了强行设置 a 元素的高宽 */

    padding-top: 30px;
    overflow: hidden;

    background: url("../images/logo.png") no-repeat left top / 100%;
}

.header .search {
    margin-left: 20px;
    width: 270px;
    height: 30px;
    border: 1px solid #c3c3c3;
    font-size: 13px;

    position: relative;
}

.header .search .search-textbox {
    width: 240px;
    height: 20px;
    padding: 5px;
}

.header .search .search-textbox::placeholder {
    color: #c3c3c3;
}

.header .search button {
    position: absolute;
    width: 30px;
    height: 30px;
    top: 0;
    right: 0;
    color: #c3c3c3;
}

.header .menu { margin-top: 6px;}

.header .menu a {
    background: url("../images/nav.png") no-repeat left top/462px 20px;
    width: 40px;
    height: 20px;
    /* display: inline-block; */
    float: left;
    margin-left: 20px;
}
.header .menu a:nth-child(2){
    background-position: -60px;
}
.header .menu a:nth-child(3){
    background-position: -120px;
}
.header .menu a:nth-child(4){
    background-position: -180px;
}
.header .menu a:nth-child(5){
    background-position: -240px;
}
.header .menu a:nth-child(6){
    background-position: -300px;
}
.header .menu a:nth-child(7){
    background-position: -360px;
}
.header .menu a:nth-child(8){
    background-position: -420px;
    width: 43px;
}

/*  header end */